<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>

    <div th:replace="m/head :: head"></div>

    <title>手机登录</title>

</head>
<body>
<div class="loginwrap">
    <div class="login-title">
        <a href="javascript: window.history.back(-1)">取消</a>
    </div>
    <div class="login-con">
        <form th:action="@{/login-sms}" method="post">
            <div class="logo">
                <img th:src="@{/static/m/img/logo-2.png}"/>
            </div>
            <div class="logo-text">
                <img th:src="@{/static/m/img/login-text.png}"/>
            </div>
            <div class="login-input">
                <div class="login-text clearfix">
                    <div class="left">
                        手机号
                    </div>
                    <div class="right">
                        <input type="text" class="mobile-for-sms-code" name="username" value="" placeholder="输入手机号"/>
                    </div>
                </div>
                <div class="verify-text clearfix">
                    <div class="login-text" style="float: left;">
                        <div class="left">
                            短信验证码
                        </div>
                        <div class="right">
                            <input type="text" name="sms" value="" placeholder="输入短信验证码"/>
                        </div>
                    </div>
                    <a href="javascript:void(0)" class="verify-btn get-sms-code">获取验证码</a>
                </div>
                <p class="error" th:text="${session.SPRING_SECURITY_LAST_EXCEPTION ne null ? (session.SPRING_SECURITY_LAST_EXCEPTION.message eq 'Bad credentials' ? '用户名或短信验证码错误' : session.SPRING_SECURITY_LAST_EXCEPTION.message) : ''}"></p>
            </div>
            <input type="submit" class="submit" name="" value="登录"/>
            <a th:href="@{/login}" class="iphone">账号密码登录</a>
        </form>
    </div>
</div>

</body>

<div th:replace="m/foot :: footer('baidu.hide')"></div>

</html>
